package com.ruoyi.points.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.points.mapper.BargainGroupListGrandsonMapper;
import com.ruoyi.points.domain.BargainGroupListGrandson;
import com.ruoyi.points.service.IBargainGroupListGrandsonService;

/**
 * 412Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-05
 */
@Service
public class BargainGroupListGrandsonServiceImpl implements IBargainGroupListGrandsonService
{
    @Autowired
    private BargainGroupListGrandsonMapper bargainGroupListGrandsonMapper;

    /**
     * 查询412
     *
     * @param id 412主键
     * @return 412
     */
    @Override
    public BargainGroupListGrandson selectBargainGroupListGrandsonById(Long id)
    {
        return bargainGroupListGrandsonMapper.selectBargainGroupListGrandsonById(id);
    }

    /**
     * 查询412列表
     *
     * @param bargainGroupListGrandson 412
     * @return 412
     */
    @Override
    public List<BargainGroupListGrandson> selectBargainGroupListGrandsonList(BargainGroupListGrandson bargainGroupListGrandson)
    {
        return bargainGroupListGrandsonMapper.selectBargainGroupListGrandsonList(bargainGroupListGrandson);
    }

    /**
     * 新增412
     *
     * @param bargainGroupListGrandson 412
     * @return 结果
     */
    @Override
    public int insertBargainGroupListGrandson(BargainGroupListGrandson bargainGroupListGrandson)
    {
        return bargainGroupListGrandsonMapper.insertBargainGroupListGrandson(bargainGroupListGrandson);
    }

    /**
     * 修改412
     *
     * @param bargainGroupListGrandson 412
     * @return 结果
     */
    @Override
    public int updateBargainGroupListGrandson(BargainGroupListGrandson bargainGroupListGrandson)
    {
        return bargainGroupListGrandsonMapper.updateBargainGroupListGrandson(bargainGroupListGrandson);
    }

    /**
     * 批量删除412
     *
     * @param ids 需要删除的412主键
     * @return 结果
     */
    @Override
    public int deleteBargainGroupListGrandsonByIds(Long[] ids)
    {
        return bargainGroupListGrandsonMapper.deleteBargainGroupListGrandsonByIds(ids);
    }

    /**
     * 删除412信息
     *
     * @param id 412主键
     * @return 结果
     */
    @Override
    public int deleteBargainGroupListGrandsonById(Long id)
    {
        return bargainGroupListGrandsonMapper.deleteBargainGroupListGrandsonById(id);
    }
}
